from django.db import models

class Host(models.Model):
	Host_IP = models.GenericIPAddressField(verbose_name="服务器IP地址",unique=True)
	Host_Colony = models.CharField(max_length=20,verbose_name="服务器所属集群",blank=True,null=True)
	Host_Cpu_Slot = models.PositiveIntegerField(verbose_name="服务器Cpu插槽数")
	Host_Cpu_Sum = models.PositiveIntegerField(verbose_name="服务器Cpu总数")
	Host_Memory = models.CharField(max_length=20,verbose_name="服务器内存")
	Host_System = models.CharField(max_length=30,verbose_name="服务器系统")
	Host_System_Version = models.CharField(max_length=10,verbose_name="服务器系统版本",blank=True,null=True)
	Host_Disk = models.CharField(max_length=20,verbose_name="服务器硬盘总空间",blank=True,null=True)
	Host_Disk_Free = models.CharField(max_length=20,verbose_name="服务器硬盘剩余空间",blank=True,null=True)
	Host_UUID = models.CharField(max_length=100,verbose_name="服务器UUID")
	Host_Manufacturer = models.CharField(max_length=20,verbose_name="服务器厂商")
	Host_Type = models.CharField(max_length=20,verbose_name="服务器型号")
	Host_Remark = models.CharField(max_length=30,verbose_name="服务器备注",blank=True,null=True)

	def __str__(self):
		return self.Host_Ip_Address
